package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 数据传输对象实体类
 *
 * @author suguangjun
 */
@Data
public class GoodsDTO implements Serializable {
    private static final long serialVersionUID = 1L;


	@Data
	public static class FastDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotNull
		@ApiModelProperty(value = "商品id")
		private Long id;
		@NotBlank
		@ApiModelProperty(value = "商品名称")
		private String goodsName;
		@NotBlank
		@ApiModelProperty(value = "商品简介")
		private String goodsBrief;
		@NotBlank
		@ApiModelProperty(value = "商品详情")
		private String goodsDetail;
		@NotNull
		@ApiModelProperty(value = "排序值")
		private Integer sort;
		private Date updateTime;
	}

	@Data
	public static class UpdateCategoryDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "ids")
		private String ids;
		@NotBlank
		@ApiModelProperty(value = "分类id")
		private String categoryId;
	}

	@Data
	public static class UpdateTransportIdDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "ids")
		private String ids;
		@NotNull
		@ApiModelProperty(value = "运费模板id")
		private Long transportId;
	}

	@Data
	public static class UpdateSalesVolumeVirtualDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "ids")
		private String ids;
		@NotNull
		@ApiModelProperty(value = "虚拟销量")
		private Integer salesVolumeVirtual;
	}

}
